 <div class="right_side_operate_area">
	<?php  
		$user=$session->read('User');
		if($showpage==1) {
			if(isset($paging)){ echo $this->renderElement('pagination',$paging);} 
		}
	?>
	<div class="right search_box">
		<form onsubmit="return searchinfo()">
	    	<div class="left search_text">
	    		<?php echo $form->text('company.keyword',array('placeholder'=>'搜索企业名称','value'=>$keyword, 'id'=>'search', 'class'=>'text_box'));?>
	    	</div>
	        <div class="left search_btn"><input type="submit" value=""/></div>
        </form>
        <div class="clear"></div>
    </div>
  
    <div class="term_choose_area right">
    	<a class="term_choose_btn" id="term_choose_btn" title="选择"></a>
    	<div class="screen_list" id="screen_list" style="display:none;visibility:hidden;">
    		<ul>
    			<?php 
    			foreach($industrys as $key=>$strindustry){
    				$selected="";
    				if($industry==$key){
    					$selected="selected";
    				}
    				echo '<li class="'.$selected.'">';
    				$keyindustry="";
    				if($key!=""){
    					$keyindustry="?industry=".$key;
    				}
    				echo $html->link($strindustry,"/users/allapply".$keyindustry,array("class"=>$selected));
    				echo '</li>';
    			}
    			?>
    		</ul>
    	</div>
    </div>
    
    <div class="clear"></div>
</div>
 

<div class="right_side_scollbar">
	<div class="detail_info_panel">
		<div class="items_list">
			<table>
				<th>标题</th>
				<th>企业名称</th>
				<th>发布日期</th>
			
			<?php 
				foreach($finacereleases as $finacerelease)
				{
			?>
			        <tr class="per_list">
			<?php
					
					$company_name = $finacerelease["Company"]["company_name"];
					$id = $finacerelease["Company"]["id"];
					$title = $finacerelease["CompFinacerelease"]["title"];
			?>
					<td><?php echo $html->link($title,"/users/showfinacedetail/".$finacerelease["CompFinacerelease"]["id"],null); ?></td>
					<td><?php echo $company_name; ?></td>
					
					<?php $releasedate = date("Y-m-d",strtotime($finacerelease["CompFinacerelease"]["created"]));?>
					<td><?php echo $releasedate; ?></td>
					
			        </tr>
			        
			<?php }?>  
		
		  </table>
		</div>
	</div>
</div>

<script>
function focuseEV(C,B,A){
	if(window.attachEvent){
		C.attachEvent("on"+B,A);
	}else{
		if(window.addEventListener){
			C.addEventListener(B,A,false);
		}
	}
}
focuseEV(document,"click",function(E){
	var E=E||window.event;
	var A=E.target||E.srcElement;
	var D=window.event?E.button:E.which;
	var C=G("term_choose_btn"),B=G("screen_list");
	while(A&&A!=document.body&&A.tagName.toLowerCase()!="html"){
		if(A==C){break}
		if(A==B){break}
		A=A.parentNode
	}
	if(A==B){
	}else if(A!=C){
		B.style.display="none"
			B.style.visibility="hidden"
	}else{
		if(D<2){
			B.style.display=B.style.display=="block"?"none":"block";
			B.style.visibility=B.style.visibility=="hidden"?"visible":"hidden";
		}
	}
});
</script>